<?php session_start()?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>{{$conf['title']}}</title>
	<link rel="stylesheet" type="text/css" href="{{__ROOT__}}/resource/home/css/index.css"/>
	<link rel="stylesheet" href="{{__ROOT__}}/resource/home/css/jqzoom.min.css">
	<script src="{{__ROOT__}}/resource/home/js/jquery-1.7.2.min.js"></script>
	<script src="{{__ROOT__}}/resource/home/js/index.js"></script>

	<script src="{{$js['nav']}}"></script>
</head>
<body>
<div id="top">
	<div class="left">
		<ul class="class">

			<li class="class"><span>品牌官网</span><b>|</b></li>
			<li class="class"> <span>炫耀官网</span><b>|</b></li>

			<li class="class"><span>花粉俱乐部</span><b>|</b></li>
			<li class="class"><span>Select Regoin</span></li>
		</ul>
	</div>
	<div class="right">
		<ul>
			<?php if($_SESSION['homeUser']['uid']){?>
				<li>
					<a href="{{u('myCenter.index')}}">我的订单</a>
				</li>
				<span>|</span>
				<li>
					<span> <strong > 欢迎:</strong><a href="">{{$_SESSION['homeUser']['uname']}}</a> </span>&nbsp;|
				<strong><a href="{{u('user.del')}}" > 退出 </a></strong>
				</li>
			<?php }else{?>

				<li>
				<strong><a href="{{u('user.login')}}" >登录</a></strong>&nbsp;
				<strong><a href="{{u('user.register')}}" >注册 </a></strong>

				</li>
			<?php }?>
			<span>|</span>
			<li>
				<span>V码（优购码)</span>&nbsp;

			</li>
			<span>|</span>
			<li>
				<span>手机版</span>&nbsp;

			</li>


		</ul>
	</div>
</div>
<!--顶部灰条结束-->
<!--购物车Logo 开始-->
<div class="header">
	<div class="shopping">
		<!--logo开始-->
		<div class="logo">
			<a href="{{u('entry.index')}}">
				<img src="{{__ROOT__}}/resource/home/images/logo3.png" alt="" />
			</a>
		</div>
		<!--logo结束-->
		<!--搜索开始-->
		<div class="seek">
			<!--搜索表单-->
			<form action="{{u('listPage.sousuo')}}" method="post">
				<input class="text" type="text" name="contene" id="" value="" required="required"/>
				<input type="submit" value="搜索" class="button"/>
			</form>

		</div>
		<!--搜索结束-->

		<div class="MyStore">
			<!--商城登录注册开始-->
			<div class="store">
				<div class="title">
					<?php if($_SESSION['homeUser']['uid']){?>
						<a href="{{u('myCenter.index')}}">我的商城</a><span></span>
					<?php }else{?>
						<a  href="{{u('user.login')}}">我的商城</a><span></span>
					<?php }?>
				</div>
				<div class="hidden">
					<div class="login">
						<?php if($_SESSION['homeUser']['uid']){?>


								<span> <strong > 欢迎:</strong><a href="">{{$_SESSION['homeUser']['uname']}}</a> </span>&nbsp;|

								<strong><a href="{{u('user.del')}}" > 退出 </a></strong>

						<?php }else{?>

							你好，请 :&nbsp;
							<a href="{{u('user.login')}}" target="_blank">登录</a>&nbsp;&nbsp;
							<span>|</span>&nbsp;&nbsp;
							<a href="{{u('user.register')}}" target="_blank">注册</a>
						<?php }?>


					</div>
					<ul>
						<?php if($_SESSION['homeUser']['uid']){?>
							<li><a href="{{u('myCenter.index')}}">我的订单</a></li>
							<li><a href="{{u('myCenter.index')}}">待支付</a></li>
							<li><a href="{{u('myCenter.index')}}">待评论</a></li>
						<?php }else{?>
							<li><a href="{{u('user.login')}}">我的订单</a></li>
							<li><a href="{{u('user.login')}}">待支付</a></li>
							<li><a href="{{u('user.login')}}">待评论</a></li>
						<?php }?>
					</ul>
					<img src="{{__ROOT__}}/resource/home/images/20160127095348354.jpg"/>
				</div>


			</div>
			<!--商城登录注册结束-->
			<!--购物车开始-->
			<div class="shoppingCar">
				<a href="{{u('mycar.index')}}" class="Cartile">购物车<?php if($CgoodsData['goods']){?> ({{count($CgoodsData['goods'])}}) <?php }else{ ?>(0) <?php }?></a>
				<if value="$CgoodsData['goods']">
					<div class="hidden">
						<ul>
							<foreach from="$CgoodsData['goods']" key="$k" value="$v">
								<li class="shopping shoppingCar_hideen_shop">
									<a href="{{u('show.index',['gid'=>$v['id']])}}" class="carImg">
										<img style="height:80px;width: 80px" src="{{$v['pic']}}" alt="">
									</a>
									<a href="{{u('show.index',['gid'=>$v['id']])}}" class="text"> {{$v['name']}} {{$v['options']['颜色'],$v['options']['选择制式']}} {{$v['options']['选择套餐'],$v['options']['选择容量']}}</a>
									<span  class="jiage">{{$v['price']}}×{{$v['num']}}</span>
									<a href="javascript:;" sid="{{$k}}" class="del">×</a>
								</li>
							</foreach>
							<div class="goOrder">
								<p>
									共 <em class="em"> {{count($CgoodsData['goods'])}}</em> 件商品，金额合计 <b class="b">￥{{$CgoodsData['total']}}</b>
									<?php if($_SESSION['homeUser']['uid']){?>
										<a href="javascript:;" class="shoppingCar_jiesuan">去结算</a>
									<?php }else{ ?>
										<a href="{{u('user.login')}} " >去结算</a>
									<?php }?>

								</p>
							</div>
						</ul>
					</div>
				<else>
						<div class="hidden">
							<div class="son">
								<span>您的购物车还是空的赶紧选购吧</span>
							</div>
						</div>
				</if>

				</div>
			<!--购物车结束-->
			<script>
				//						删除处理
				$('.shopping .del').click(function(){
					$(this).parents(".shoppingCar_hideen_shop").remove();
					var sid=$(this).attr('sid');
					$.post("{{u('myCar.ajaxDel')}}",{sid:sid},function(res){
							if(res==1){
								location.href='index.php';
							}
					},'json');

				});
				//去结算
				$('.goOrder .shoppingCar_jiesuan').click(function(){
					var data={
						choose:3,
					}
					$.post("{{u('myCar.ajaxChoose')}}",data,function(res){
						if(res==1){
							location.href="index.php?s=home/mycar/checkorder";
						}
					});
				})

			</script>
		</div>
		<!--微信二维码开始-->
		<div class="weixin">
			<a href=""> <img src="{{__ROOT__}}/resource/home/images/erweima.png"/></a>
		</div>
	</div>
</div>
<!--//****** 导航开始********8//-->

<div class="nav">
	<div class="top">
		<div class="father">
			<h2 class="title">全部商品</h2>
			<div class="hid">
				<ul>
<!--					循环分类数据-->
					<foreach from="$categoryData"  value="$v">
						<li class="left_nav">
							<div class="left_av_title">
								<h3><a  href="{{u('listPage.index',['cid'=>$v['cid']])}}">{{$v['cname']}}</a></h3>
								<?php $i=0 ?>
							<foreach from="$v['_data']"  value="$vv">
								<?php $i++?>
								<?php  if($i<=3){?>
									<span><a  href="{{u('listPage.index',['cid'=>$vv['cid']])}}" >{{$vv['cname']}}</a></span>
								<?php }?>
							</foreach>
							</div>
							<div class="left_nav_hid">
								<ul>
									<foreach from="$v['_data']" value="$value">
										<li><a  href="{{u('listPage.index',['cid'=>$vv['cid']])}}"> {{$value['cname']}}</a></li>
									</foreach>
								</ul>
								<dl>
									 <dt><span>推荐商品</span></dt>
									<foreach from="$v['tuijian']" value="$value">
									 <dd><a href="{{u('show.index',['gid'=>$value['gid']])}}">{{$value['gname']}}</a></dd>
									</foreach>
								</dl>
							</div>
						</li>
					</foreach>

				</ul>
			</div>
		</div>



		<ul class="right">
			<li><a href="{{u('entry.index')}}">首页</a></li>
			<foreach from="$brand" key="$k" value="$v">
				<li><a href="{{u('listPage.index',['bid'=>$k])}}">{{$v}}</a></li>
			</foreach>

		</ul>
	</div>

</div>


<!--子类继承-->
<blade name="content">



<div class="public_footer">
	<!--五百强企业退货开始-->
	<div class="public_footer_slogan">
		<ul>
			<li>
				<i></i> 500强企业 品质保证
			</li>
			<li>
				<i></i>7天退货 15天换货
			</li>
			<li>
				<i></i> 99元起免运费
			</li>
			<li>
				<i></i> 448家维修网点 全国联保
			</li>

		</ul>
	</div>

	<!--右侧定位点击回顶部-->
	<div class="Right_fixed">

		<a href="javascript:;" class="clickTop"></a>


	</div>


</div>


</body>
<script type="text/javascript" src="{{__ROOT__}}/resource/home/js/jqzoom.min.js"></script>
<script type="text/javascript">
	// Options readme
	/* Options = {
	 listEvent: 'hover',                  // List switching event values: 'click','hover'
	 type: 'standard',                    // lens type values:’inner’ ,’standard’ ,’reverse’ ,’drag’
	 lens: true,                          // show lens
	 alwaysOn: false,                     // always keep the lens center
	 position: 'right',                   // zoom window default position  values:’right’ ,’left’ ,’top’ ,’bottom’。
	 left: 10,                            // zoom window x offset, can be negative(more on the left) or positive(more on the right)
	 top: 0,                              // zoom window y offset, can be negative(more on the left) or positive(more on the right)
	 width: 418,                          // zoom window width
	 height: 418,                         // zoom window height
	 preload: true,                       // image preload
	 preloadText:'',                      // preload text
	 opacity: 0.4,                        // inner zoom small image opacity,
	 showEffect: 'show',                  // show zoom window effect function
	 showSpeed: 0,                        // show zoom window speed
	 hideEffect: 'hide',                  // hide zoom window effect function
	 hideSpeed: 0                         // hide zoom window speed
	 };*/
	$('#product-gallery').jqzoom();
</script>
</html>
